<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>ContextMenuControl v1.0 Reference</title>
    <link rel="stylesheet" type="text/css" href="http://code.google.com/css/codesite.css"></link>
    <link rel="stylesheet" type="text/css" href="../../util/docs/template/local_extensions.css"></link>
  </head>
  <body>
    <h1>ContextMenuControl</h1>
    <p>
<p>This class lets you add a control to the map which mimics
the context menu of Google Maps. The control supports all of the six
items supported by Google Maps: finding directions to/from a location,
zooming in/out, centering the map, and finding the address at the clicked
location. Any of these items may be suppressed by passing options into
the constructor. This control extends the 
<a href="http://www.google.com/apis/maps/documentation/reference.html#GControl">
GControl</a> interface.</p>
<p>Note: ContextMenuControl doesn't work in Opera because Opera doesn't 
support the oncontextmenu event and doesn't give access to right mouse clicks.
</p></p>
    <p>For a description and examples of how to use this library, check out the <a href="examples.html">how-to</a>.</p>
    
      <h2><a name="ContextMenuControl"></a>class ContextMenuControl</h2>
      <p></p>
      
        <h3>Constructor</h3>
        <table summary="class ContextMenuControl - Constructor" width="90%">
          
          <tbody>
            <tr>
              <th>Constructor</th>
              
              <th>Description</th>
            </tr>
            
              <tr class="odd">
                <td><code>ContextMenuControl(<span class="type">opt_opts?:ContextMenuControlOptions</span>)</code></td>
                
                <td>Creates a control with options specified in <code><a href="reference.html#ContextMenuControlOptions">ContextMenuControlOptions</a></code>.</td>
              </tr>
            
          </tbody>
        </table>
      
    
      <h2><a name="ContextMenuControlOptions"></a>class ContextMenuControlOptions</h2>
      <p>This class represents optional arguments to <code><a href="reference.html#ContextMenuControl">ContextMenuControl</a></code>.  There is no constructor for this class.  Instead, this class is instantiated as a javascript object literal.</p>
      
        <h3>Properties</h3>
        <table summary="class ContextMenuControlOptions - Properties" width="90%">
          
          <tbody>
            <tr>
              <th>Properties</th>
              
                
                  <th>Type</th>
                
              
              <th>Description</th>
            </tr>
            
              <tr class="odd">
                <td><code>centerMap</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>"Shows "Center map here" item.  The default value is <code> true</code>.</td>
              </tr>
            
              <tr class="even">
                <td><code>dirsFrom</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>Shows "Directions from here" item.  The default value is <code> true</code>.</td>
              </tr>
            
              <tr class="odd">
                <td><code>dirsTo</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>Shows "Directions to here" item.  The default value is <code> true</code>.</td>
              </tr>
            
              <tr class="even">
                <td><code>whatsHere</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>"Shows "What's here?" item.  The default value is <code> true</code>.</td>
              </tr>
            
              <tr class="odd">
                <td><code>zoomIn</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>Shows "Zoom in" item.  The default value is <code> true</code>.</td>
              </tr>
            
              <tr class="even">
                <td><code>zoomOut</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>Shows "Zoom out" item.  The default value is <code> true</code>.</td>
              </tr>
            
          </tbody>
        </table>
      
    
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">
      _uacct = "UA-964209-4";
      urchinTracker();
    </script> 
  </body>
</html>
